/**
 * 
 */
package pt.mleiria.sAction.bo.index;

import java.sql.Date;
import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.HibernateQueryException;

import pt.mleiria.sAction.hibernate.IndexData;

/**
 * @author Manuel
 *
 */
public interface IndexBO {
	/**
	 * @param ticker
	 * @param numberOfSessions
	 * @return List<IndexData>
	 * @throws HibernateQueryException
	 */
	List<IndexData> getIndexDataList(String ticker, int numberOfSessions) throws DataAccessException;
	/**
	 * 
	 * @param ticker
	 * @param numberOfSessions
	 * @return Um Map de doubles com os retornos dos close prices
	 * @throws DataAccessException
	 */
	Map<Date, Double> getIndexReturnMap(String ticker, int numberOfSessions) throws DataAccessException;

}
